package com.tr.shopping.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1:在cotroller 的具体方法中添加 @Valid 注解开启验证
 * 2:在cotroller 的具体方法中添加 BindingResult result （紧接着要验证的类或者字段）
 * 3:在对应的实体类中添加SJR303格式校验注解
 * **/
@MapperScan("com.tr.shopping.product.dao")
@EnableFeignClients(basePackages = "com.tr.shopping.product.feign")
@SpringBootApplication
@EnableDiscoveryClient
public class ShoppingProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShoppingProductApplication.class,args);
    }
}
